<template>
  <div>
    <div class="gold_modal_com" v-for="item in goldMedalData">
      <div class="photo_information">
        <div class="photo">
          <img :src="item.photo" alt="">
        </div>
        <div>
          <div class="photo_text">
            <div>{{item.account}}</div>
            <div>{{item.department_id}}</div>
            <div>{{item.store_id}}</div>
          </div>
        </div>
      </div>
      <div class="go_right">
        <span @click="goWebsiteData(item.id)" class="iconfont icon-icon--"></span>
      </div>
    </div>
  </div>

</template>

<script>
  export default {
    props: {
      goldMedalData: {
        type: Array
      },

    },
    name: 'GoldModalCom',
    methods:{
      //  经纪人主页(详情)
      goWebsiteData(id){
        this.$router.push('/RealtorWebsite/' + id);
      }
    }
  }
</script>

<style scoped>
  .gold_modal_com {
    display: flex;
    justify-content: space-between;
    padding: 10px;
  }

  .gold_modal_com .photo_information {
    display: flex;
  }

  .gold_modal_com .photo_information .photo {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }

  .gold_modal_com .photo_information .photo img {
    /*position: absolute;*/
    height: 100%;
    /*left: -20px;*/
    width: 100%;
    border-radius: 60px;
  }
  .gold_modal_com .photo_information .photo_text>div{
    height: 20px;
    line-height: 20px;
    font-size: 0.8rem;
    color: #999;
  }
  .gold_modal_com .photo_information .photo_text>div:nth-child(1){
    color: #333;
    font-size: 1rem;
  }
  .gold_modal_com .go_right{
    height: 60px;
    line-height: 60px;
  }
</style>
